projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c59c085
)
arm/kirkwood: protect the ENV_SPI #defines
author
Valentin Longchamp
<
[email protected]
>
Wed, 13 Jun 2012 03:03:52 +0000
(
03:03
+0000)
committer
Albert ARIBAUD
<
[email protected]
>
Sat, 7 Jul 2012 12:07:33 +0000
(14:07 +0200)
So that they can be redefined by some boards specific values.
Signed-off-by: Valentin Longchamp <
[email protected]
>
Signed-off-by: Holger Brunck <
[email protected]
>
cc: Prafulla Wadaskar <
[email protected]
>
arch/arm/include/asm/arch-kirkwood/config.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/arch-kirkwood/config.h
b/arch/arm/include/asm/arch-kirkwood/config.h
index 91164eb4021a10f9f77a0e97c8de8b0e3c2bbaf0..a9499b70cd37421d922dab4714d3c1c8b24eb55e 100644
(file)
--- a/
arch/arm/include/asm/arch-kirkwood/config.h
+++ b/
arch/arm/include/asm/arch-kirkwood/config.h
@@
-82,9
+82,15
@@
#ifdef CONFIG_CMD_SF
#define CONFIG_HARD_SPI 1
#define CONFIG_KIRKWOOD_SPI 1
-#define CONFIG_ENV_SPI_BUS 0
-#define CONFIG_ENV_SPI_CS 0
-#define CONFIG_ENV_SPI_MAX_HZ 50000000 /*50Mhz */
+#ifndef CONFIG_ENV_SPI_BUS
+# define CONFIG_ENV_SPI_BUS 0
+#endif
+#ifndef CONFIG_ENV_SPI_CS
+# define CONFIG_ENV_SPI_CS 0
+#endif
+#ifndef CONFIG_ENV_SPI_MAX_HZ
+# define CONFIG_ENV_SPI_MAX_HZ 50000000
+#endif
#endif
/*